DictionaryBase Members

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Syntax

C#
[SerializableAttribute]
public abstract class DictionaryBase<TKey, TValue>
Visual Basic (Declaration)
<SerializableAttribute> _
Public MustInherit Class DictionaryBase(Of TKey, TValue)
Visual C++
[SerializableAttribute]
generic<typename TKey, typename TValue>
public ref class DictionaryBase abstract

Type Parameters

TKey
TValue

The type exposes the following members.

Protected Constructors

Public Methods

  NameDescription
Public methodAddOverloaded.
Public methodAsReadOnly
Provides a read-only view of this dictionary. The returned IDictionary<TKey,TValue> provides a view of the dictionary that prevents modifications to the dictionary. Use the method to provide access to the dictionary without allowing changes. Since the returned object is just a view, changes to the dictionary will be reflected in the view.
Public methodClear
Clears the dictionary. This method must be overridden in the derived class.
(Overrides CollectionBase<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>..::Clear()().)
Public methodContains
Determines if a dictionary contains a given KeyValuePair. This implementation checks to see if the dictionary contains the given key, and if the value associated with the key is equal to (via object.Equals) the value.
(Overrides CollectionBase<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>..::Contains(T).)
Public methodContainsKey
Determines whether a given key is found in the dictionary.
Public methodConvertAll<(Of <TOutput>)>
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration contains the result of applying converter to each item in this collection, in order.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodCopyTo
Copies all the items in the collection into an array. Implemented by using the enumerator returned from GetEnumerator to get all the items and copy them to the provided array.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodCountWhere
Counts the number of items in the collection that satisfy the condition defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExists
Determines if the collection contains any item that satisfies the condition defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodFindAll
Enumerates the items in the collection that satisfy the condition defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodForEach
Performs the specified action on each item in this collection.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodGetEnumerator
Must be overridden to enumerate all the members of the collection.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemoveOverloaded.
Public methodRemoveAll
Removes all the items in the collection that satisfy the condition defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodToArray
Creates an array of the correct size, and copies all the items in the collection into the array, by calling CopyTo.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodToString
Shows the string representation of the dictionary. The string representation contains a list of the mappings in the dictionary.
(Overrides CollectionBase<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>..::ToString()().)
Public methodTrueForAll
Determines if all of the items in the collection satisfy the condition defined by predicate.
(Inherited from CollectionBase<(Of <T>)>.)
Public methodTryGetValue
Determines if this dictionary contains a key equal to key. If so, the value associated with that key is returned through the value parameter. This method must be overridden by the derived class.

Protected Methods

  NameDescription
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)

Public Properties

  NameDescription
Public propertyCount
Must be overridden to provide the number of items in the collection.
(Inherited from CollectionBase<(Of <T>)>.)
Public propertyItem
The indexer of the dictionary. This is used to store keys and values and retrieve values from the dictionary. The setter accessor must be overridden in the derived class.
Public propertyKeys
Returns a collection of the keys in this dictionary.
Public propertyValues
Returns a collection of the values in this dictionary. The ordering of values in this collection is the same as that in the Keys collection.

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate propertyICollection<(Of <T>)>..::IsReadOnly (Inherited from CollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate methodICollection..::CopyTo
Copies all the items in the collection into an array. Implemented by using the enumerator returned from GetEnumerator to get all the items and copy them to the provided array.
(Inherited from CollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyICollection..::IsSynchronized
Indicates whether the collection is synchronized.
(Inherited from CollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyICollection..::SyncRoot
Indicates the synchronization object for this collection.
(Inherited from CollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate methodIDictionary..::Add
Adds a key-value pair to the collection. If key or value are not of the expected types, an ArgumentException is thrown. If both key and value are of the expected types, the (overridden) Add method is called with the key and value to add.
Explicit interface implemetationPrivate methodIDictionary..::Clear
Clears this dictionary. Calls the (overridden) Clear method.
Explicit interface implemetationPrivate methodIDictionary..::Contains
Determines if this dictionary contains a key equal to key. The dictionary is not changed. Calls the (overridden) ContainsKey method. If key is not of the correct TKey for the dictionary, false is returned.
Explicit interface implemetationPrivate methodIDictionary..::GetEnumerator
Returns an enumerator that enumerates all the entries in the dictionary. Each entry is returned as a DictionaryEntry. The entries are enumerated in the same orders as the (overridden) GetEnumerator method.
Explicit interface implemetationPrivate propertyIDictionary..::IsFixedSize
Returns whether this dictionary is fixed size. This implemented always returns false.
Explicit interface implemetationPrivate propertyIDictionary..::IsReadOnly
Returns if this dictionary is read-only. This implementation always returns false.
Explicit interface implemetationPrivate propertyIDictionary..::Item
Gets or sets the value associated with a given key. When getting a value, if this key is not found in the collection, then null is returned. When setting a value, the value replaces any existing value in the dictionary. If either the key or value are not of the correct type for this dictionary, an ArgumentException is thrown.
Explicit interface implemetationPrivate propertyIDictionary..::Keys
Returns a collection of all the keys in the dictionary. The values in this collection will be enumerated in the same order as the (overridden) GetEnumerator method.
Explicit interface implemetationPrivate methodIDictionary..::Remove
Removes the key (and associated value) from the collection that is equal to the passed in key. If no key in the dictionary is equal to the passed key, the dictionary is unchanged. Calls the (overridden) Remove method. If key is not of the correct TKey for the dictionary, the dictionary is unchanged.
Explicit interface implemetationPrivate propertyIDictionary..::Values
Returns a collection of all the values in the dictionary. The values in this collection will be enumerated in the same order as the (overridden) GetEnumerator method.
Explicit interface implemetationPrivate methodIEnumerable..::GetEnumerator
Returns an enumerator that enumerates all the entries in the dictionary. Each entry is returned as a DictionaryEntry. The entries are enumerated in the same orders as the (overridden) GetEnumerator method.

See Also